package com.hds.modules.sys.utils;

/**
 * @Author guonan
 * @Email guonan@yewcn.com
 * @Description
 * @Date 2018/6/11 14:53
 */
public class ActivationCodeUtil {
    /**
     * 激活码卡号后六位生成
     * @param l
     * @return
     */
    public static String long2NormalNumber(long l) {
        char[] num = new char[8];
        long remain, cur = l;
        for (int i=7; i>=0; i--) {
            remain = cur % 10;
            num[i] = (char) (48 + remain);
            cur = cur / 10;
        }

        return new String(num);
    }
}
